<h1><%= @show.title %></h1>

<table>
  <tr>
    <th>Season</th>
    <th>Episode</th>
    <th>Title</th>
    <th>Actions</th>
  </tr>
  
<% @episodes.each do |episode| %>
  <tr>
    <td><%= episode.season%></td>
    <td><%= episode.episode%></td>
    <td><%= episode.title%></td>
    <td>
      <%= link_to 'Show', :action => 'show', :id => episode %>
      <%= link_to 'Edit', :action => 'edit', :id => episode %>
      <%= link_to 'Destroy', { :action => 'destroy', :id => episode}, :confirm => 'Are you sure?', :method => :post %>
      <%= link_to 'Start', { :controller => 'queued_downloads', :action => 'push', :episode_id => episode } %>
    </td>
  </tr>
<% end %>
</table>

<%= link_to 'Edit', :action => 'edit', :id => @show %> |
<%= link_to 'Back', :action => 'list' %>
